package com.chanyachting.emall.service;

import java.util.List;

import com.chanyachting.emall.domain.Applicationleter;
import com.chanyachting.emall.domain.Educationhistory;
import com.chanyachting.emall.domain.Jobhistory;
import com.chanyachting.emall.domain.Member;





/****
 * 求职信息
 * @author robert
 *
 */
public interface ApplicationLeterService {
	
	public static final String JOBHISTORYLISTINSESSINO="jobhistory_list_in_session";
	
	public static final String EDUCATIONHISTORYLISTINSESSINO="educationhistory_list_in_session";
	
	//创建求职信息
	public boolean createApplicationleter(Applicationleter al);
	
	
	//获得一个求职信息
	public Applicationleter getOneApplicationLeter(Applicationleter al);
	
	
	//更新求职信息
	public boolean updateApplicationleterInfo(Applicationleter al);
	
	
	//删除求职信息
	public boolean delApplicationleter(Applicationleter al);
	
	
	//发布求职信息
	public boolean releaseApplicationleter(Applicationleter al);
	
	
	//下架求职信息
	public boolean delReleaseApplicationleter(Applicationleter al);
	
	
	//刷新求职信息
	public void refreshApplicationleter(Applicationleter al);
	
	
	//获得搜有求职信息，不指定会员
	public List<Applicationleter> getAllApplicationleter();
	
	
	//获得指定会员的所有求职信息
	public List<Applicationleter> getApplicationleterByMember(Member member);
	
	
	//获得指定会员所有已发布求职信息
	public List<Applicationleter> getReleasedApplicationleter(Member member);
	
	
	//获得指定会员所有未发布求职信息
	public List<Applicationleter> getNReleasedApplicationleter(Member member);
	
	
	//添加工作历史
	public boolean addJobHistory(Applicationleter al,Jobhistory jh);
	
	//删除工作历史
	public void delJobHistory(Jobhistory jh);
	
	//修改工作历史
	public boolean updateJobHistory(Jobhistory jh);
	
	
	//添加教育历史
	public boolean addEducationhistory(Applicationleter al,Educationhistory eh);
	
	
	//删除教育历史
	public boolean updateEducationhistory(Educationhistory eh); 
	
	
	//修改教育历史
	public void delEducationhistory(Educationhistory eh);
	

	public List<Applicationleter> getApplicationleterByKeyword(String keyword);
	
	public List<Applicationleter> getAllApplicationleterByPageBreak(int currentPage,int pageSize);
	
	public int getApplicationleterCount(String status);
}
